@section('title')
    我的客户 @parent
@show

@section('subcontent')
<!-- 我的律师已关注的律师 -->
<div id="mainUserInfo">
<div class="mod-main mod-comm lefta-box">
    <div class="mt">
    	<h3 class="curr">已咨询</h3>  
    </div>
    <div class="mc">
    	<table class="tb-void" width="100%" border="0" cellspacing="0" cellpadding="0">
		    <tbody>
		        <tr>
		            <th width="140">
		                头像
		            </th>
		            <th width="100">
		                用户名
		            </th>
		            <th width="100">
		                咨询内容
		            </th>
		            <th width="100">
		                回复内容
		            </th>
		            <th width="110">
		                操作
		            </th>
		        </tr>
		        @foreach ($data as $key => $value)
		        <tr>
		            <td>
		                <div class="img-list">
		                    <a class="img-box" href="###">
		                        <img src="{{ Config::get('app.url') . '/' . $value['avatar'] }}" title="{{ $value['realname'] }}" width="150px" height="100px">
		                    </a>
		                </div>
		            </td>
		            <td>
		                <a href="###"> {{ $value['realname'] }} </a>
		            </td>
		            <td>
		                <div class="contentText">{{ $value['content'] }}</div>
		            </td>
		            <td>
                        <div class="fore1">咨询回复：</div>
                        <?php
	        			foreach($value['comments'] as $comment) {
	        			?>
                            <div class="fore2">
                            	({{ $comment['creator_realname'] }})
                            	{{ $comment['content'] }}
                            	<b class="time">{{ $comment['created_at'] }}</b>
                            </div>
                        <?php
                    	}
                    	?>
		            </td>
		            <td>
		                <a href="###"> 编辑 </a>
		                <a href="###"> 删除 </a>
		            </td>
		        </tr>
		        @endforeach
		    </tbody>
		</table>
    </div>
</div>
</div>
@show